<div id="user-info">
    <p>用户名：<span v-text="userInfo.username"></span></p>
    <p>文章数量：<span v-text="userInfo.article_number"></span></p>
</div>

<script>
    var userInfoVm = new Vue({
        el: '#user-info',
        data: {
            userInfo: {}
        }, mounted() {
            let username = document.URL.split('?')[0].split('/').pop();
            axios.get('/user-info/' + username).then((response) => {
                this.userInfo = response.data
            })
        }
    });
</script>